package cn.labbook.bluetooth.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import java.util.Date;
import com.baomidou.mybatisplus.annotation.Version;
import com.baomidou.mybatisplus.annotation.TableId;
import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 
 * </p>
 *
 * @author lonzy
 * @since 2019-11-06
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
public class AmmeterReading implements Serializable {

    private static final long serialVersionUID = 1L;

    @TableId(value = "id", type = IdType.INPUT)
    private Integer id;

    /**
     * 当前电量
     */
    private Double electricQuantity;

    /**
     * 本次抄表使用电量
     */
    private Double useQuantity;

    /**
     * 抄表时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date readingTime;

    private String ammeterId;

    /**
     * 剩余金额
     */
    private Double balance;

    /**
     * 23字节上一次购电记录
     */
    private String lastBuy;

    /**
     * 24字节电量数据
     */
    private String electricityData;


}
